<template>
	<view class="often-content">
		<view class='head'>
			<span>常用功能</span>
		</view>
		<view class='content'>
			<view class='view' @click='goCollect'>
				<image class='img' src="@/static/order/collection.png" mode=""></image>
				<p>收藏</p>
			</view>
			<view class='view' @click='goCard'>
			  <image class='img' src="@/static/order/cardroll.png" mode=""></image>
			  <p>卡卷</p>
			</view>
			<view class='view' @click='goService'>
				<image class='img' src="@/static/order/service.png" mode=""></image>
				<p>客服</p>
			</view>
			<view class='view' @click='goAddress'>
				<image class='img' src="@/static/order/address.png" mode=""></image>
				<p>地址</p>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		methods:{
			goCollect(){
				uni.navigateTo({
					url: '/pages/tab4/view/often/collect'
				})
			},
			goCard(){
				uni.navigateTo({
					url: '/pages/tab4/view/often/card'
				})
			},
			goService(){
				uni.navigateTo({
					url: '/pages/tab4/view/often/service'
				})
			},
			goAddress(){
				uni.navigateTo({
					url: '/pages/tab4/view/often/address'
				})
			}
		}
	}
</script>

<style lang='scss'>
.often-content{
	width: 95%;
	height: 220rpx;
	margin-left: 2.5%;
	margin-top: 30rpx;
	border-radius: 15rpx;
	background-color: white;
	border: 1rpx solid rgba(176,196,222,0.3);
	color: #898D98;
	font-size: 28rpx;
	.head{
		width: 94%;
		height: 70rpx;
		margin-left: 3%;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		span{
			color: #3F4249;
			font-size: 30rpx;
		}
	}
	.content{
		width: 100%;
		height: 150rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-around;
		.view{
			display: flex;
			flex-direction: column;
			align-items: center;
			.img{
				width: 60rpx;
				height: 60rpx;
			}
			p{
				margin-top: 15rpx;
			}
		}
	}
}
</style>
